<!DOCTYPE html>
<html>
<head lang="zh-CN">

  <meta name="_token" content="{{ csrf_token() }}"/>

  <title>{{$webName}} - @yield('title')</title>

  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  <meta name="viewport" content="width=device-width,initial-scale=1"/>
  <meta charset="utf-8"/>
  <meta name="keywords" content="{{$keywords}}"/>
  <meta name="description" content="欢迎前来百舌屋官网，众多正品运动鞋任您选购"/>
  <meta name="author" content="兄弟连PHP139期乌鸦组"/>
  <link href="{{asset('home/css/bootstrap.css')}}" rel="stylesheet" type="text/css" media="all"/>
  <link href="{{asset('home/css/topstyle.css')}}" rel="stylesheet" type="text/css" media="all"/><!--外加导航栏央视-->
  <link href="{{asset('home/css/memenu.css')}}" rel="stylesheet" type="text/css" media="all"/>
  <link href="{{asset('home/css/style.css')}}" rel="stylesheet" type="text/css" media="all"/>
  @section('introduce')
  @show
  <script src="/home/js/jquery-1.9.1.min.js"></script>
  <script type="text/javascript" src="/home/js/easing.js"></script>
  <script type="text/javascript" src="/home/js/simpleCart.min.js"></script>
  <script type="text/javascript" src="/home/js/memenu.js"></script>
  <script type="text/javascript" src="/home/js/move-top.js"></script>
  <script type="application/x-javascript">
    addEventListener("load",function()
    {
      setTimeout(hideURLbar,0);
    },false);
    function hideURLbar()
    {
      window.scrollTo(0,1);
    }
  </script>
  <script type="text/javascript">
    jQuery(document).ready(function($){
      $(".scroll").click(function(event){
        event.preventDefault();
        $('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
      });
    });
  </script>
  <script>
    $(document).ready(function()
    {
      $(".memenu").memenu();
    });
  </script>
</head>
<body>
<!--外加导航栏-->

<div id="shortcut-2014">
  <div class="w">
    <ul class="fl" clstag="h|keycount|2015|01a">
      <li class="dorpdown" id="ttbar-mycity"></li>
    </ul>
    <ul class="fr">
      <li class="fore1" id="ttbar-login" clstag="h|keycount|2015|01b">
      @if(Session::has('name'))
        {{session('name')}}，
        <a href="{{asset('/unsetsession')}}" class="link-login">
          退出
        </a>
      @else
        <a href="{{asset('/login')}}" class="link-login">
        你好，请登录
        </a>
        &nbsp;&nbsp;
        <a href="{{asset('/register')}}" class="link-regist style-red">免费注册</a>
      @endif
        
      </li>
      <li class="spacer"></li>
      <li class="fore2" clstag="h|keycount|2015|01c">
        <div class="dt">
          @if(Session::has('name'))
          <a target="_self" href="/home/myhouse/order">我的订单</a>
          @else
          <a  href="{{asset('/login')}}" target="_blank">我的订单</a>
          @endif
        </div>
      </li>
      <li class="spacer"></li>
      <li class="fore3 dorpdown" id="ttbar-navs" clstag="h|keycount|2015|01j">
        <div class="dt cw-icon">
          <i class="ci-right"><s>◇</s></i>
          @if(Session::has('name'))

          <a href="/home/member">我的小屋</a>

          @else
          <a href="{{asset('/login')}}" target="_blank">我的小屋</a>
          @endif
        </div>
        @if(Session::has('name'))
        <div class="dd dorpdown-layer" style="width:200px;padding:20px;">
          <div class="dd-spacer"></div>
          <div class="userinfo">
              <div class="u-pic">
                <a href="#"><img src="{{session('pic')}}" height="60" width="60"></a>
              </div>
              <div class="u-name u-login">
                <a href="{{asset('/login')}}" class="link-login">{{session('name')}}</a>
              </div>
              <div class="u-extra">
                上次登录：<span>{{date('Y-m-d H:i:s',session('ltime'))}}</span><br>
                <a href="/home/myhouse/message/receive" target="_self">您有 1 封新消息<span id="num-tip"></span></a>
              </div>
              <div class="otherlist">
                <div class="fore1">
                  <div class="item">
                    <a href="/home/myhouse/message" clstag="" target="_blank">我的信息设置<span id="num-unfinishedorder"></span></a>
                  </div>
                  <div class="item">
                    <a href="#" clstag="" target="_self">我的收货地址<span id="num-unfinishedorder"></span></a>
                  </div>
                  <div class="item">
                    <a href="/home/myhouse/order" clstag="" target="_self">我的订单<span id="num-unfinishedorder"></span></a>
                  </div>
                  <div class="item">
                    <a href="home/myhouse/message/" clstag="" target="_self">我的消息<span id="num-unfinishedorder"></span></a>
                  </div>
                  <!--
                  <div class="item">
                    <a href="#" clstag="" target="_self">我的收藏<span id="num-unfinishedorder"></span></a>
                  </div>
                  -->
                </div>    
              </div>
          </div> 
        </div>
        @else
        <div class="dd dorpdown-layer" style="width:200px;padding:20px;">
          <div class="dd-spacer"></div>
          <div class="userinfo">
              <div class="u-pic">
                <a href="#"><img src="/uploads/member/no-img_mid_.jpg" height="60" width="60"></a>
              </div>
              <div class="u-name u-login">
                <a href="{{asset('/login')}}" class="link-login">你好，请登录</a>
              </div>
              <div class="u-extra">
                <a href="/home/myhouse/message/receive" target="_self">您有 1 封新消息<span id="num-tip"></span></a>
              </div>
              <div class="otherlist">
                <div class="fore1">
                  <div class="item">
                    <a href="#" clstag="" target="_self">我的信息设置<span id="num-unfinishedorder"></span></a>
                  </div>
                  <div class="item">
                    <a href="#" clstag="" target="_self">我的收货地址<span id="num-unfinishedorder"></span></a>
                  </div>
                  <div class="item">
                    <a href="#" clstag="" target="_self">我的订单<span id="num-unfinishedorder"></span></a>
                  </div>
                  <div class="item">
                    <a href="#" clstag="" target="_self">我的消息<span id="num-unfinishedorder"></span></a>
                  </div>
                  <!--
                  <div class="item">
                    <a href="#" clstag="" target="_self">我的收藏<span id="num-unfinishedorder"></span></a>
                  </div>
                  -->
                </div>    
              </div>
          </div> 
        </div>
        @endif
      </li>
      <li class="fore4" clstag="h|keycount|2015|01c">
        <div class="dt">
  {{--session('permission')--}}
  @if(Session::get('permission')==2 or Session::get('permission')==3)
  <a target="_blank" href="{{asset('admin/login')}}">后台管理</a>
  @endif
        </div>
      </li>
    </ul>
    <span class="clr"></span>
  </div>
</div>
<!--top-header开始-->
<div class="top-header">
  <div class="container">
    <div class="top-header-main">
        <div class="col-md-4 top-header-left">
          <div class="search-bar">
          <form action="/product" method="get">
            <input type="text" value="搜索" onFocus="this.value='';"onBlur="if(this.value==''){this.value='搜索';}" name="search">
            <input type="submit" value="">
          </form>
          </div>
        </div>
        <div class="col-md-4 top-header-middle">
          <a href="{{asset('/')}}"><img src="{{$LOG}}" alt=""/></a>
        </div>
        <div class="col-md-4 top-header-right">
          <div class="cart box_1">
          @if(Session::has('name'))
            <a href="/cart">
              <h3>
                <img src="{{asset('home/images/cart-1.png')}}" alt=""/>
                <div class="total">
                  <span>购物车</span> (<span>0</span> 件)
                </div>
              </h3>              
            </a>
          @else
            <a href="/login" target="_blank">
              <h3>
                <img src="{{asset('home/images/cart-1.png')}}" alt=""/>
                <div class="total">
                  <span>购物车</span> (<span>0</span> 件)
                </div>
              </h3>              
            </a>
          @endif    
            <div class="clearfix"></div>
          </div>
        </div>
        <div class="clearfix"></div>
    </div>
  </div>
</div>
<!--top-header结束-->
<!--bottom-header-->
<div class="header-bottom">
  <div class="container">
    <div class="top-nav">
      <ul class="memenu skyblue"><li class="active"><a href="{{asset('/')}}">首页</a></li>
          <li class="grid"><a href="/product?cro_id=1">男子</a>
            <div class="mepanel">
              <div class="row">
                <div class="col1 me-one">
                  <h4>人群</h4><br>
                  <ul>
                    @foreach($crowds as $crowd)
                    <li><a href="/product?cro_id={{$crowd->crowd_id}}">{{$crowd->crowd_type}}</a></li>                    
                    @endforeach
                  </ul>
                </div>
                <div class="col1 me-one">
                  <h4>运动</h4><br>
                  <ul>
                    @foreach($msports as $msport)
                    <li><a href="/product?cro_id=1&spo_id={{$msport->sport_id}}">{{$msport->sport_type}}</a></li>
                    @endforeach
                  </ul> 
                </div>
                <div class="col1 me-one">
                  <h4>品牌</h4><br>
                  <ul>
                    @foreach($allbrands as $allbrand)
                    <li><a href="/product?cro_id=1&brand_id={{$allbrand->brand_id}}">{{$allbrand->brand_name_zh}}</a></li>
                    @endforeach
                  </ul> 
                </div>
              </div>
            </div>
          </li>
          <li class="grid"><a href="/product?cro_id=2">女子</a>
            <div class="mepanel">
              <div class="row">
                <div class="col1 me-one">
                  <h4>人群</h4><br>
                  <ul>
                    @foreach($crowds as $crowd)
                    <li><a href="/product?cro_id={{$crowd->crowd_id}}">{{$crowd->crowd_type}}</a></li>                    
                    @endforeach  
                  </ul>
                </div>
                <div class="col1 me-one">
                  <h4>运动</h4><br>
                  <ul>
                     @foreach($wsports as $wsport)
                    <li><a href="/product?cro_id=2&spo_id={{$wsport->sport_id}}">{{$wsport->sport_type}}</a></li>
                    @endforeach
                  </ul> 
                </div>
                <div class="col1 me-one">
                  <h4>品牌</h4><br>
                  <ul>
                    @foreach($allbrands as $allbrand)
                    <li><a href="/product?cro_id=2&brand_id={{$allbrand->brand_id}}">{{$allbrand->brand_name_zh}}</a></li>
                    @endforeach
                  </ul>
                </div>
              </div>
            </div>
          </li>
          <li class="grid"><a href="/product?cro_id=3">儿童</a>
            <div class="mepanel">
              <div class="row">
                <div class="col1 me-one">
                  <h4>人群</h4><br>
                  <ul>
                    @foreach($crowds as $crowd)
                    <li><a href="/product?cro_id={{$crowd->crowd_id}}">{{$crowd->crowd_type}}</a></li>                    
                    @endforeach  
                  </ul>
                </div>
                <div class="col1 me-one">
                  <h4>运动</h4><br>
                  <ul>
                    @foreach($csports as $csport)
                    <li><a href="/product?cro_id=3&spo_id={{$csport->sport_id}}">{{$csport->sport_type}}</a></li>
                    @endforeach
                  </ul> 
                </div>
                <div class="col1 me-one">
                  <h4>品牌</h4><br>
                  <ul>
                    @foreach($allbrands as $allbrand)
                    <li><a href="/product?cro_id=3&brand_id={{$allbrand->brand_id}}">{{$allbrand->brand_name_zh}}</a></li>
                    @endforeach
                  </ul>
                </div>
              </div>
            </div>
          </li>
        </ul>
    </div>
    <div class="clearfix"> </div>
  </div>
  @section('content')

  @show
</div>
<!--start-footer-->
  <div class="footer">
    <div class="container">
      <div class="footer-top">
        <div class="col-md-3 footer-left">
          <h3>会员指南</h3>
          <ul>
            <li><a href="#">会员介绍</a></li>
            <li><a href="#">购物流程</a></li>
            <li><a href="#">常见问题</a></li>
            <li><a href="#">联系客服</a></li> 
          </ul>
        </div>
        <div class="col-md-3 footer-left">
          <h3>售后服务</h3>
          <ul>
            <li><a href="#">售后政策</a></li>
            <li><a href="#">价格保护</a></li>
            <li><a href="#">取消订单</a></li>
            <li><a href="#">退款说明</a></li>
          </ul>
        </div>
        <div class="col-md-3 footer-left">
          <h3>配送方式</h3>
          <ul>
            <li><a href="#">上门自提</a></li>
            <li><a href="#">配送服务查询</a></li>
            <li><a href="#">配送服务标准</a></li>
            <li><a href="#">海外配送</a></li>
          </ul>
        </div>
        <div class="col-md-3 footer-left">
          <h3>关于我们</h3>
          <ul>
            <li><a href="#">关于百舌</a></li>
            <li><a href="#">招贤纳士</a></li>
            <li><a href="#">投资入驻</a></li>
            <li><a href="#">联系我们</a></li>
          </ul>
        </div>
        <div class="clearfix"> </div>
      </div>
    </div>
  </div>
  <!--end-footer-->
  <div class="container">
    <h3>友情链接</h3>
    <br>
    <div class="row" style="height:50px;">
      @foreach($frilinks_pic as $frilink_pic)
      <div class="col-md-2" style="height:48px;">
        <a href="{{$frilink_pic->url}}">
        <img src="/uploads/website/frilink/{{$frilink_pic->pic}}" style="height:48px;width:50px;" title="{{$frilink_pic->description}}"/>
        </a>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="{{$frilink_pic->url}}" title="{{$frilink_pic->description}}">
        <span>{{$frilink_pic->title}}</span>
        </a>
      </div>
      @endforeach
    </div>
    <br>
    <div class="row">
      <div class="col-md-12">
        @foreach($frilinks_nopic as $frilink_nopic)
        <a href="{{$frilink_nopic->url}}" title="{{$frilink_nopic->description}}">{{$frilink_nopic->title}}</a><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
        @endforeach
      </div>
    </div>
  </div>
  <!--end-footer-text-->
  <div class="footer-text">
    <div class="container">
      <div class="footer-main">
        <p class="footer-class">Copyright &copy; 2015-2016.<a href="#" target="_blank" title="百舌屋">{{$copyright}}</a> 版权所有</p>
      </div>
    </div>
    <script type="text/javascript">
      $(document).ready(function() {
        /*
        var defaults = {
            containerID: 'toTop', // fading element id
          containerHoverID: 'toTopHover', // fading element hover id
          scrollSpeed: 1200,
          easingType: 'linear' 
        };
        */
        
        $().UItoTop({ easingType: 'easeOutQuart' });
        
      });
    </script>
    <a href="#home" id="toTop" class="scroll" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>
  </div>
  <!--end-footer-text-->  
</body>
</html>